
    <section>
      <ul class="breadcrumb">
        <li><a href="<?php echo base_url('index.php/mainController/'); ?>">Home</a> <span class="divider">/</span></li>
        <li><a href="<?php echo base_url('index.php/roleController/'); ?>">Role</a> <span class="divider">/</span></li>
        <li class="active">สร้าง Role</li>
      </ul>


      <div class="page-header">
        <h1>สร้าง Role</h1>

      </div>

      <?php echo form_open('referenceController/create',array('class'=>'form-horizontal')); ?>

        <div class="control-group">
          <label class="control-label" for="name">ชื่อ Role</label>
          <div class="controls">
            <input type="text" name="name" placeholder="ชื่อ">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label" for="name">รายละเอียด</label>
          <div class="controls">
            <input type="text" name="name" placeholder="ชื่อ">
          </div>
        </div>

        

      <table class="table table-striped table-condensed">
        <thead>
          <th>Permission</th>
          <th>View</th>
          <th>Create</th>
          <th>Update</th>
          <th>Delete</th>
          <th>Approve</th>
          <th>Export</th>
        </thead>

        <tbody>
          <?php  
            foreach ($resultPermission as $row) {
              echo "<tr>";
              echo "<td>".$row['per_name']."</td>";
              echo "<td><input type='checkbox'></td>";
              echo "<td><input type='checkbox'></td>";
              echo "<td><input type='checkbox'></td>";
              echo "<td><input type='checkbox'></td>";
              echo "<td><input type='checkbox'></td>";
              echo "<td><input type='checkbox'></td>";
              echo "</tr>";
            }
          ?>
        </tbody>
      </table>

      <div class="control-group">
        <div class="controls">
          <button type="reset" class="btn">ล้างค่า</button>
          <button id="btnCreate" name="btnCreate" type="submit" class="btn btn-primary">สร้าง</button>
        </div>
      </div>

      <?php echo form_close(); ?>

    </section>




